package com.woniuxy.happylife.suggest.service.impl;

import com.woniuxy.happylife.entity.Reply;
import com.woniuxy.happylife.suggest.dao.ReplyDao;
import com.woniuxy.happylife.suggest.service.ReplyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author Fu
 * @Date 2022-02-15 16:48
 */
@Service
public class ReplyServiceImpl implements ReplyService {
    @Resource
    ReplyDao replyDao;
    @Override
    public int insert(Reply reply) {
        return replyDao.insert(reply);
    }

    @Override
    public Reply findReply(Integer suggestsId) {
        return replyDao.findReply(suggestsId);
    }

    @Override
    public int deleteById(Integer suggestsId) {
        return replyDao.deleteById(suggestsId);
    }
}
